/*
 * Copyright Iain Sproat, 2009
 * 
 *
 */
using System;

namespace FreeBase.Domain.ValueTypes
{
	/// <summary>
	/// Description of FBDateTime.
	/// </summary>
	public class FBDateTime : FBValueType<DateTime>
	{
		public FBDateTime()
		{
		}
		public FBDateTime( string dt )
		{
			this.Value = DateTime.Parse(dt);
		}
		
		public override DateTime Value { get; set; }
		
		public static implicit operator FBDateTime( DateTime dt )
		{
			FBDateTime d = new FBDateTime();
			d.Value = dt;
			return d;
		}
		
		public static implicit operator FBDateTime( string dt )
		{
			FBDateTime d = new FBDateTime();
			d.Value = DateTime.Parse( dt );
			return d;
		}
	}
}
